--[[There is actually a hidden parameter for shieldjitter called "Strength". It can be adjusted by adding "strength   = 0.015," to the line. For example {class='ShieldJitter', options={delay=0,life=math.huge, pos={0,40.5,0.0}, size=10, precision=22, strength = 0.015, repeatEffect=true}},  Defaults to the value of 0.015 ]]--

effectUnitDefs = {
  --// FUSIONS //--------------------------
  cafus = {
    {class='Bursts', options=cafusBursts},
    {class='StaticParticles', options=cafusCorona},
    --{class='ShieldSphere', options=cafusShieldSphere},
    --{class='ShieldJitter', options={layer=-16, life=math.huge, pos={0,58.9,-4.5}, size=24.5, precision=22, repeatEffect=true}},
    {class='GroundFlash', options=groundFlashOrange},
  },
  corfus = {
    {class='StaticParticles', options=corfusNova},
    {class='StaticParticles', options=corfusNova2},
    {class='StaticParticles', options=corfusNova3},
    {class='StaticParticles', options=corfusNova4},

    {class='Bursts', options=corfusBursts},
    {class='ShieldJitter', options={delay=0,life=math.huge, pos={0,40.5,0.0}, size=10, precision=22, repeatEffect=true}},
  },
  aafus = {
    {class='SimpleParticles2', options=MergeTable({piece="rod2", delay=30, lifeSpread=math.random()*20},sparks)},
    {class='SimpleParticles2', options=MergeTable({piece="rod4", delay=60, lifeSpread=math.random()*20},sparks)},
    {class='SimpleParticles2', options=MergeTable({piece="rod5", delay=90, lifeSpread=math.random()*20},sparks)},
    {class='SimpleParticles2', options=MergeTable({piece="rod7", delay=120, lifeSpread=math.random()*20},sparks)},

    {class='Sound', options={repeatEffect=true, file="Sparks", blockfor=4.8*30, length=5.1*30}},
  },

  --// SHIELDS //---------------------------
  --[[
  corjamt = {
    {class='Bursts', options=corjamtBursts},
    {class='ShieldSphere', options={life=math.huge, piece="glow", size=13, colormap1 = {{0.8, 0.1, 0.8, 0.5}}, repeatEffect=true}},
	{class='ShieldSphere', options={piece="base", life=math.huge, size=350, pos={0,-15,0}, colormap1 = {{0.95, 0.1, 0.95, 0.2}}, repeatEffect=true}},
    {class='GroundFlash', options=groundFlashViolett},
	{class='GroundFlash', options=groundFlashShield},
  },
  core_spectre = {
    {class='Bursts', options=MergeTable({piece="glow"},corjamtBursts)},
    {class='ShieldSphere', options={piece="glow", life=math.huge, size=11, colormap1 = {{0.95, 0.1, 0.95, 0.9}}, repeatEffect=true}},
	{class='ShieldSphere', options={piece="base", life=math.huge, size=350, pos={0,-15,0}, colormap1 = {{0.95, 0.1, 0.95, 0.2}}, repeatEffect=true}},
  },
  --]]

  --// ENERGY STORAGE //--------------------
  corestor = {
    {class='GroundFlash', options=groundFlashCorestor},
  },
  armestor = {
    {class='GroundFlash', options=groundFlashArmestor},
  },
  
  --// PYLONS // ----------------------------------
  mexpylon = {
    {class='GroundFlash', options=groundFlashCorestor},
  },

  --// OTHER
  roost = {
    {class='SimpleParticles', options=roostDirt},
    {class='SimpleParticles', options=MergeTable({delay=60},roostDirt)},
    {class='SimpleParticles', options=MergeTable({delay=120},roostDirt)},
  },
  corarad = {
    {class='StaticParticles', options=radarBlink},
    {class='StaticParticles', options=MergeTable(radarBlink,{pos={-1.6,25,0.0},delay=15})},
    {class='StaticParticles', options=MergeTable(radarBlink,{pos={0,21,-1.0},delay=30})},
  },
  corrad = {
    {class='StaticParticles', options=MergeTable(radarBlink,{piece="head"})},
    {class='StaticParticles', options=MergeTable(radarBlink,{piece="head", delay=15})},
  },

  spherepole = {
    {class='Ribbon', options={color={.3,.3,01,1}, width=5.5, piece="blade", onActive=false}},
  },
  
  pw_warpgate = {
    {class='StaticParticles', options=warpgateCorona},
--    {class='GroundFlash', options=groundFlashOrange},
  },  

  --// PLANES //----------------------------
  armhawk = {
    {class='AirJet', options={color={0.2,0.1,0.5}, width=5, length=30, piece="ljet", onActive=true}},
    {class='AirJet', options={color={0.2,0.1,0.5}, width=5, length=30, piece="rjet", onActive=true}},
    {class='AirJet', options={color={0.2,0.1,0.5}, width=5, length=30, piece="mjet", onActive=true}},
    {class='Ribbon', options={width=1, size=8, piece="lwingtip"}},
    {class='Ribbon', options={width=1, size=8, piece="rwingtip"}},
    {class='Ribbon', options={width=1, size=8, piece="mwingtip"}},
  },
  armcybr = {
    {class='AirJet', options={color={0.4,0.1,0.8}, width=3.5, length=30, piece="nozzle1", onActive=true}},
    {class='AirJet', options={color={0.4,0.1,0.8}, width=3.5, length=30, piece="nozzle2", onActive=true}},
   },
  armhawk2 = {
    {class='AirJet', options={color={0.2,0.2,1.0}, width=2.8, length=25, piece="enginel", onActive=true}},
    {class='AirJet', options={color={0.2,0.2,1.0}, width=2.8, length=25, piece="enginer", onActive=true}},
    {class='Ribbon', options={width=1, size=12, piece="wingtip1"}},
    {class='Ribbon', options={width=1, size=12, piece="wingtip2"}},
  },
  armbrawl = {
    {class='AirJet', options={color={0.0,0.5,1.0}, width=5, length=15, piece="lfjet", onActive=true}},
    {class='AirJet', options={color={0.0,0.5,1.0}, width=5, length=15, piece="rfjet", onActive=true}},
    {class='AirJet', options={color={0.0,0.5,1.0}, width=2.5, length=10, piece="lrjet", onActive=true}},
    {class='AirJet', options={color={0.0,0.5,1.0}, width=2.5, length=10, piece="rrjet", onActive=true}},
  },
  armawac = {
    {class='Ribbon', options={color={.3,.3,01,1}, width=5.5, piece="rjet"}},
    {class='Ribbon', options={color={.3,.3,01,1}, width=5.5, piece="ljet"}},
  },
  armstiletto_laser = {
    {class='AirJet', options={color={0.1,0.4,0.6}, width=3.5, length=20, piece="Jet1", onActive=true}},
    {class='AirJet', options={color={0.1,0.4,0.6}, width=3.5, length=20, piece="Jet2", onActive=true}},
    {class='Ribbon', options={width=1, size=6, piece="LWingTip"}},
    {class='Ribbon', options={width=1, size=6, piece="RWingTip"}},
  },
  armcsa = {
    {class='AirJet', options={color={0.45,0.45,0.9}, width=2.8, length=15, piece="enginel", onActive=true}},
    {class='AirJet', options={color={0.45,0.45,0.9}, width=2.8, length=15, piece="enginer", onActive=true}},
    {class='Ribbon', options={width=1, size=12, piece="wingtipl"}},
    {class='Ribbon', options={width=1, size=12, piece="wingtipr"}},
  },

  bladew = {
    {class='Ribbon', options={width=1, size=5, piece="ljet"}},
    {class='Ribbon', options={width=1, size=5, piece="rjet"}},  
    {class='AirJet', options={color={0.1,0.4,0.6}, width=3, length=14, piece="ljet", onActive=true, emitVector = {0, 1, 0}}},
    {class='AirJet', options={color={0.1,0.4,0.6}, width=3, length=14, piece="rjet", onActive=true, emitVector = {0, 1, 0}}},
  },

  armkam = {
    {class='Ribbon', options={width=1, size=10, piece="lfx"}},
    {class='Ribbon', options={width=1, size=10, piece="rfx"}},  
    {class='AirJet', options={color={0.1,0.4,0.6}, width=4, length=25, piece="lfx", onActive=true, emitVector = {0, 0, 1}}},
    {class='AirJet', options={color={0.1,0.4,0.6}, width=4, length=25, piece="rfx", onActive=true, emitVector = {0, 0, 1}}},
  },
  armpnix = {
    {class='AirJet', options={color={0.1,0.4,0.6}, width=3.5, length=25, piece="exhaustl", onActive=true}},
    {class='AirJet', options={color={0.1,0.4,0.6}, width=3.5, length=25, piece="exhaustr", onActive=true}},
    {class='Ribbon', options={width=1, size=10, piece="wingtipl"}},
    {class='Ribbon', options={width=1, size=10, piece="wingtipr"}},  
  },
  armdfly = {
    {class='AirJet', options={color={0.1,0.5,0.3}, width=3.2, length=22, piece="jet1", onActive=true}},
    {class='AirJet', options={color={0.1,0.5,0.3}, width=3.2, length=22, piece="jet2", onActive=true}},
  },
  corshad = {
    {class='AirJet', options={color={0.2,0.4,0.8}, width=4, length=30, piece="thrustr", texture2=":c:bitmaps/gpl/lups/jet2.bmp", onActive=true}},
    {class='AirJet', options={color={0.2,0.4,0.8}, width=4, length=30, piece="thrustl", texture2=":c:bitmaps/gpl/lups/jet2.bmp", onActive=true}},
    {class='Ribbon', options={width=1, piece="wingtipl"}},
    {class='Ribbon', options={width=1, piece="wingtipr"}},
  },
  fighter = {
    {class='AirJet', options={color={0.6,0.1,0.0}, width=3.5, length=55, piece="nozzle1", texture2=":c:bitmaps/gpl/lups/jet2.bmp", onActive=true}},
    {class='AirJet', options={color={0.6,0.1,0.0}, width=3.5, length=55, piece="nozzle2", texture2=":c:bitmaps/gpl/lups/jet2.bmp", onActive=true}},
    {class='Ribbon', options={width=1, piece="wingtip1"}},
    {class='Ribbon', options={width=1, piece="wingtip2"}},
  },
  corape = {
    {class='AirJet', options={color={0.6,0.1,0.0}, width=3.5, length=22, piece="rthrust1", onActive=true}},
    {class='AirJet', options={color={0.6,0.1,0.0}, width=3.5, length=22, piece="rthrust2", onActive=true}},
  },
  corhurc = {
    {class='AirJet', options={color={0.5,0.1,0.0}, width=3.5, length=25, piece="nozzle1", onActive=true}},
    {class='AirJet', options={color={0.5,0.1,0.0}, width=3.5, length=25, piece="nozzle2", onActive=true}},
   },
  corhurc2 = {
    {class='AirJet', options={color={0.7,0.3,0.1}, width=5, length=40, piece="exhaust", onActive=true}},
    {class='Ribbon', options={width=1, piece="wingtipl"}},
    {class='Ribbon', options={width=1, piece="wingtipr"}},
  },
  corvamp = {
    {class='AirJet', options={color={0.6,0.1,0.0}, width=3.5, length=55, piece="thrust1", onActive=true}},
    {class='AirJet', options={color={0.6,0.1,0.0}, width=3.5, length=55, piece="thrust2", onActive=true}},
    {class='AirJet', options={color={0.6,0.1,0.0}, width=3.5, length=55, piece="thrust3", onActive=true}},
    {class='Ribbon', options={width=1, size=8, piece="wingtip1"}},
    {class='Ribbon', options={width=1, size=8, piece="wingtip2"}},
  },
  corawac = {
    {class='AirJet', options={color={0.1,0.4,0.6}, width=3.5, length=25, piece="thrust", onActive=true}},
    {class='Ribbon', options={width=1, size=8, piece="wingtipl"}},
    {class='Ribbon', options={width=1, size=8, piece="wingtipr"}},
  },
  blackdawn = {
    {class='AirJet', options={color={0.8,0.1,0.0}, width=7, length=30, jitterWidthScale=2, distortion=0.01, piece="Lengine", texture2=":c:bitmaps/gpl/lups/jet2.bmp", onActive=true}},
    {class='AirJet', options={color={0.8,0.1,0.0}, width=7, length=30, jitterWidthScale=2, distortion=0.01, piece="Rengine", texture2=":c:bitmaps/gpl/lups/jet2.bmp", onActive=true}},
  },
  corcrw = {
    {class='AirJet', options={color={0.0,0.5,1.0}, width=10, length=20, piece="jetrear", onActive=true, emitVector = {0, 0, 1}}},
    {class='AirJet', options={color={0.0,0.5,1.0}, width=10, length=20, piece="jetleft", onActive=true, emitVector = {0, 0, 1}}},
    {class='AirJet', options={color={0.0,0.5,1.0}, width=10, length=20, piece="jetright", onActive=true, emitVector = {0, 0, 1}}},
  },
 }

effectUnitDefsXmas = {
  armcom = {
    {class='SantaHat', options={color={0,0.7,0,1}, pos={0,4,0.35}, emitVector={0.3,1,0.2}, width=2.7, height=6, ballSize=0.7, piece="head"}},
  },
  corcom = {
    {class='SantaHat', options={pos={0,6,2}, emitVector={0.4,1,0.2}, width=2.7, height=6, ballSize=0.7, piece="head"}},
  },
   armadvcom = {
    {class='SantaHat', options={color={0,0.7,0,1}, pos={0,4,0.35}, emitVector={0.3,1,0.2}, width=2.7, height=6, ballSize=1, piece="head"}},
  },
  coradvcom = {
    {class='SantaHat', options={pos={0,6,2}, emitVector={0.4,1,0.2}, width=2.7, height=6, ballSize=1, piece="head"}},
  },
  commsupport = {
    {class='SantaHat', options={pos={0,3.8,0.35}, emitVector={0,1,0}, width=2.7, height=6, ballSize=0.7, piece="head"}},
  },
  commrecon = {
    {class='SantaHat', options={color={0,0.7,0,1}, pos={1.5,4,0.5}, emitVector={0.7,1.6,0.2}, width=2.2, height=6, ballSize=0.7, piece="head"}},
  },
  commadvsupport = {
    {class='SantaHat', options={pos={0,3.8,0.35}, emitVector={0,1,0}, width=2.7, height=6, ballSize=1, piece="head"}},
  },
  commadvrecon = {
    {class='SantaHat', options={color={0,0.7,0,1}, pos={1.5,4,0.5}, emitVector={0.7,1.6,0.2}, width=2.2, height=6, ballSize=1, piece="head"}},
  },
}